@import "./common.less";
.rank-final {
  font-size: 38px;
  width: 56px;
  height: 56px;
  line-height: 40px;
  background-color: @theme_primary;
  background-image: linear-gradient(90deg, @theme_primary 0%, @theme_lighter2 100%);
  color: @text_light;
  display: inline-block;
  text-align: center;
  border-radius: 30px;
  padding: 8px;
  margin: -20px 10px -20px -48px;
}

.build-container {
  .setting {
    background: @theme_back;
    padding: 8px 20px 0;
    margin: 16px 0;
    border-radius: 20px;
    border-left: 4px solid @theme_primary;
    border-right: 4px solid @theme_lighter2;
  }
  .el-collapse {
    border: 0;
  }
  .el-collapse-item__wrap {
    overflow: visible;
  }
  .el-collapse-item {
    &:last-child {
      .el-collapse-item__wrap {
        border: 0;
      }
      .el-collapse-item__header {
        border: 0;
      }
    }
  }
  padding: 8px;
  > .el-card__body {
    padding: 8px;
  }
}

.build-item {
  .el-tag {
    background: transparent;
    border-radius: 20px;
  }
  flex-wrap: wrap;
}

.build-prop {
  .el-tag {
    background: transparent;
    border-radius: 20px;
  }
  & > * {
    margin-bottom: 4px;
    margin-left: 8px;
  }
  margin: 0 6px -10px;
}

.build-list {
  .loading {
    padding: 10px 20px;
  }
  .el-collapse-item {
    & + .el-collapse-item {
      .el-collapse-item__header {
        padding-top: 0;
      }
    }
  }
  .el-collapse-item__header {
    background: unset;
    border: 0;
    margin: 8px 8px 0;
    height: auto;
    min-height: 40px;
    border-radius: 20px;
    background-color: @theme_primary;
    background-image: linear-gradient(90deg, @theme_primary 0%, @theme_lighter2 100%);
  }
  .el-collapse-item__wrap {
    background: unset;
    border: 0;
  }
  background-color: @theme_back;
  color: @text_darker;
  border-radius: 20px;
  border-left: 4px solid @theme_primary;
  border-right: 4px solid @theme_lighter2;
  margin-top: 8px;
  padding-bottom: 8px;
  .el-collapse-item__arrow {
    line-height: 40px;
    margin-right: 16px;
    color: @text_light;
  }
  .build-container {
    overflow: visible;
    padding: 0;
  }
  .el-collapse-item__content {
    padding-bottom: 14px;
  }
}

.build-title {
  font-size: 1rem;
  line-height: 40px;
  padding: 0px 16px;
  color: @text_light;
}

.build-card-header {
  padding: 10px 0px;
  border: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: @theme_back;
  margin: 8px;
  border-radius: 20px;
  color: @text_grey;
  text-shadow: none;
}

.build-result {
  font-size: 1em;
  margin: 0 10px;
  padding: 10px;
  .rank-progress {
    width: 140px;
    display: inline-block;
  }
  .rank-progress-text {
    display: inline-block;
    font-size: 14px;
    color: @text_grey;
    margin: 0 6px;
    line-height: 1;
  }
}

.build-price {
  font-size: 16px;
  color: @text_light;
}

.price-tip {
  font-size: 11px;
}

.chroma-dmg {
  .el-input-group__append {
    padding: 0 10px;
  }
}

.build-form-inline {
  .el-form-item {
    margin: 4px;
  }
}

.build-card-body {
  padding: 10px;
}

.build-card {
  height: 56px;
  margin-bottom: 12px;
  &:hover {
    z-index: 9;
    .build-card-box {
      max-height: 300px;
    }
  }
}

.score-text {
  color: @text_error;
}

.build-card-box {
  overflow: hidden;
  transition: max-height 0.4s ease-in;
  max-height: 56px;
  margin-bottom: 8px;
  z-index: 8;
  text-align: center;
  cursor: pointer;
  color: @text_light;
  font-size: 1em;
  text-shadow: rgba(0, 0, 0, 0.9) 0px 1px 2px;
  border-radius: 27px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent);
  &.n {
    background-color: @mod_n;
  }

  &.c {
    background-color: @mod_c;
  }

  &.r {
    background-color: @mod_r;
  }

  &.g {
    background-color: @mod_g;
  }

  &.l {
    background-color: @mod_l;
  }

  &.x {
    background-color: @mod_x;
  }
}

&.n {
  background-color: @mod_n;
}

&.c {
  background-color: @mod_c;
}

&.r {
  background-color: @mod_r;
}

&.g {
  background-color: @mod_g;
}

&.l {
  background-color: @mod_l;
}

&.x {
  background-color: @mod_x;
}

.build-header {
  font-size: 16pt;
  padding: 8px 0;
}

.build-card-name {
  font-size: 11pt;
  line-height: 20px;
}

.build-card-prop {
  font-size: 9pt;
}

@media only screen and (max-width: 482px) {
  .build-result {
    .rank-progress {
      display: none;
    }
  }
}
